package com.ruoyi.ruoyiserver.config;

import com.ruoyi.common.config.RuoYiConfig;

import java.io.File;

// 基础变量
public class IConstants {

    /**
     * 基本路径
     */
    public static final String USR_DIR = System.getProperty("user.dir");

    /**
     * 文件存储路径
     */
    public static final String STORAGE_DIR = USR_DIR + File.separator + "storage";


    /**
     * 备份文件地址
     */
    public static final String BACK_DIR = STORAGE_DIR + File.separator + "backup" + File.separator;


    static {
        File file = new File(STORAGE_DIR, BACK_DIR);
        if (!file.exists()) {
            file.mkdirs();
        }
    }

}
